module.exports = {
    FAIL:-5,
    FAIL_CODE:{
        PARAM:5001,//参数错误
        TOKEN:5002,//token错误
        SESSION_KICK:5003,//解除session
        SESSION_BIND:5004,//绑定session
        DATA_BASE_ERROR:5005,//数据库错误
        USER_NOT_EXIST:5006,//用户不存在
        GEMS_SHORSTAG:5001,//房卡不足
        CREATR_TABLE_FAIL:50002,
        LOGIN_FAIL:50003,//登录成功
        JOIN_TABLE_FAIL:50004,
        TBALE_NOT_EXIST:50005,
        USER_NOT_SEAT:50006,
        USER_ISREADY:50007,
        GAME_NOT_CURSTATE:50008,
        NOT_CUROPREATOR:50009,
        CARD_NOT_YOURHANDCARD:50010,
        ROOM_NOT_EXIST:50011
    },
    OK:1001,
    INVALID:-1,
    OK_CODE:{
        LOGIN_SUCCESS:10001,//登录成功
        CREATR_TABLE_SUCESS:10002,
        JOIN_TABLE_SUCCESS:10003,
        USER_READY_SUCCESS:10004,
        GAME_DEAL_CARD:10005,//准备成功
        GAME_START:10006,
        NOTIY_OUT_CARD:10007,
        OUT_CARD:10008,
        GAME_OPTRATION:10009,
        GAME_EXIT:10010,
        GAME_SMALL_SETTLEMENT:10011,
        GAME_BIG_SETTLEMENT:10012

    },
    GAME_ID:{
        HALL:10000,
        YCMJ:10001
    },
    GAME_END_REASON:{
        SMALL_SETT:0,
        BIG_SETT:1,
        LIU_JU:2,
        GAME_DISS:3,
        OTHER:4
    },
    PLYAER_EXIT_REASON:{
        KICK:0,//被踢
        EXIT:1,//退出
        COIN:2,//金币
        DISCONNNET:3//掉线
    },
    YCMJ_HUPAI_TYPE:{
        PINGHU:0,
        ZIMO:1,
        TIANHU:2,
        DIHU:3,
        MENQING:4,
        ZIYISE:5,
        QUANQIUREN:6,
        QIANGHANG:7,
        XIAOQI:8,
        DAQI:9,
        SHISANYAO:10,
        QIXING:11
    },
    YCMJ_OP_TYPE:{
        ZUO_CHI:0,
        ZHONG_CHI:1,
        YOU_CHI:2,
        PENG:3,
        MING_GANG:4,
        AN_GANG:5,
        PENG_GANG:6,
        HU:7,
        ZIMO:8,
        GUO:9
    },
    TABLE_STATE:{
        GAME_WAIT:0,
        GAME_READY:1,//
        GAME_START:2,
        GAME_IN:3,//
        GAME_WAIT_OPRETION:4,
        GAME_SMALL_SETTLEMENT:5,
        GAME_BIG_SETTLEMENT:6
    },
    PLAYER_STATE:{
        PLAYER_LOOKON:0,
        PLAYER_SEAT:1,//
        PLAYER_READY:2,//
        PLAYER_PLAYERING:3,
        PLAYER_FOLD:4

    },
    EXIT_REASON:{
        LEAVE:0,
        PLAYER_EXIT:1
    }
}